<!--
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-05-25 11:29:39
 * @LastEditors: Silence
 * @LastEditTime: 2023-06-02 22:42:11
-->
<template>
  <div v-if="Showflag" class="dia" :style="{ width, height }">
    <h1 class="title">{{ title }}</h1>
    <slot></slot>
  </div>
</template>
<script>
export default {
  props: {
    title: String,
    Showflag: Boolean,
    width: {
      type: String,
      default: '50%'
    },
    height: {
      type: String,
      default: '50%'
    }
  },
  data () {
    return {
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    Model () {
      this.$emit('update:Showflag', false)
    }
  }
}
</script>
<style lang='less'  scoped>
.dia {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
}
.btns {
  display: flex;
  justify-content: space-between;
}
</style>
